package com.company.project.vo.req;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * Title: UserInTeamDTO.java  
 * Description:     
 * @author LS  
 * @date 2021-2-3 10:28:50  
 * @version 1.0
 */
@Data
public class UserInTeamDTO {
	
	@ApiModelProperty(value = "团队成员ID，新增时不传，修改时必传")
    private String id;
	
	@NotBlank(message = "电话不能为空")
	@ApiModelProperty(value = "电话")
	@Pattern(regexp = "^1[345789][0-9]{9}$")
	private String phone;
	
	@NotBlank(message = "姓名不能为空")
	@ApiModelProperty(value = "姓名")
	private String name;
    
	@NotBlank(message = "身份证号名不能为空")
	@Size(min=18, max=18)
	@ApiModelProperty(value = "身份证号")
    private String idNumber;    
	
	/**
	 * 单位
	 */
	@NotBlank(message = "单位不能为空")
	@ApiModelProperty(value = "单位")
	private String organization;
	
    //职务
	@NotBlank(message = "职务不能为空")
	@ApiModelProperty(value = "职务")
	private String post;
	
	@ApiModelProperty(value = "邮箱")
	@Email
    private String email;
    
	@NotBlank(message = "省份不能为空")
	@ApiModelProperty(value = "省份")
	private String province;
    
	@NotBlank(message = "城市不能为空")
	@ApiModelProperty(value = "城市")
    private String city;
    
	@NotBlank(message = "学校不能为空")
	@ApiModelProperty(value = "学校")
    private String school;
    
	@NotBlank(message = "学历不能为空")
	@ApiModelProperty(value = "学历")
    private String degree;
    
	@NotBlank(message = "专业不能为空")
	@ApiModelProperty(value = "专业")
    private String major;
	
	@ApiModelProperty(value = "个人简介")
    private String remark;

}
